package persistent;
/**
 * 
 */


import persistent.*;

import java.util.ArrayList;
import java.util.Date;

import LoginUtil.User;

/**
 * This type of record holds the patient's diagnosis after a visit.
 * **Design note: was TreatmentRecord, then I realized what a TreatmentRecord really was.
 * @author Winfred Nadeau
 *
 */
public class TreatmentRecord extends Record {
	private User nurse;
	
	
	/**
	 * The doctor's orders.
	 */
	private String recommendations;
	/**
	 * Any drugs recommended
	 */
	private ArrayList<Prescription> prescriptions;
	/**
	 * a flag to see if this diagnosis has been paid for
	 */
	private boolean paid;
	
	/**
	 * the patient's weight at the time of the visit
	 */
	private int weight;
	
	/**
	 * date of the treatment
	 */
	private Date date;
	
	public TreatmentRecord(User doc, User pat, User nur){
		super(pat, doc);
		this.nurse = nur;
		this.setPaid(false);
	}

	//Blank constructor for database purposes
	public TreatmentRecord(User patient){
		super(patient, null);
	}
	
	public void setRecommendations(String recommendations) {
		this.recommendations = recommendations;
	}

	public String getRecommendations() {
		return recommendations;
	}
	
	public void setPaid(boolean paid) {
		this.paid = paid;
	}

	public boolean isPaid() {
		return paid;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	public User getNurse(){
		return this.nurse;
	}
	
	public boolean getPaid(){
		return this.paid;
	}
}
